package com.rsk.api.common;

		import com.rsk.utils.result.Result;
		import com.rsk.utils.result.ResultBuilder;
		import com.rsk.utils.result.ResultCode;

public class ReturnUtils {

	public static Result<String> returnDataByOne(int i){
		if(i == 1){
			return ResultBuilder.successNoData(ResultCode.SUCCESS);
		}else if(i == 0){
			return ResultBuilder.successNoData(ResultCode.DATA_ALREADY_EXISTED);
		}else if(i == -1){
			return ResultBuilder.successNoData(ResultCode.DATA_ALREADY_EXISTED);
		}else{
			return ResultBuilder.faile(ResultCode.FAILD);
		}
	}

}
